package com.etc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/BackController")
public class BackController {

    /**
     * 跳转后台登录
     * @return
     */
    @RequestMapping("/login")
    public ModelAndView login(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/login");
        return mv;
    }
    /**
     *跳转后台首页
     * @return
     */
    @RequestMapping("/index")
    public ModelAndView index(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/index");
        return mv;
    }

    @RequestMapping("/console")
    public ModelAndView allRoom(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/console");
        return mv;
    }

    @RequestMapping("/reservationList")
    public ModelAndView reservationList(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/reservationList");
        return mv;
    }

    @RequestMapping("/roomType")
    public ModelAndView roomType(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/roomType");
        return mv;
    }

    @RequestMapping("/roomtypeform")
    public ModelAndView roomtypeform(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/roomtypeform");
        return mv;
    }

    @RequestMapping("/room")
    public ModelAndView room(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/room");
        return mv;
    }

    @RequestMapping("/roomform")
    public ModelAndView roomform(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/roomform");
        return mv;
    }

    @RequestMapping("/chekin")
    public ModelAndView chekin(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/chekin");
        return mv;
    }

    @RequestMapping("/chekinform")
    public ModelAndView chekinform(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/chekinform");
        return mv;
    }

    @RequestMapping("/bill")
    public ModelAndView bill(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/bill");
        return mv;
    }

    @RequestMapping("/userlist")
    public ModelAndView userlist(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/userlist");
        return mv;
    }

    @RequestMapping("/adminlist")
    public ModelAndView adminlist(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/adminlist");
        return mv;
    }

    @RequestMapping("/adminform")
    public ModelAndView adminform(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/adminform");
        return mv;
    }

    @RequestMapping("/list")
    public ModelAndView list(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/list");
        return mv;
    }

    @RequestMapping("/replys")
    public ModelAndView replys(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/replys");
        return mv;
    }

    @RequestMapping("/info")
    public ModelAndView info(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/info");
        return mv;
    }

    @RequestMapping("/password")
    public ModelAndView password(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/password");
        return mv;
    }

    @RequestMapping("/hotellist")
    public ModelAndView hotellist(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/hotellist");
        return mv;
    }

    @RequestMapping("/hotelform")
    public ModelAndView hotelform(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("back/hotelform");
        return mv;
    }
}
